package com.zscat.mallplus.center.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zscat.mallplus.utils.BaseEntity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

/**
 * 订单-会员充值对象 center_order_recharge
 * 
 * @author Wsen
 * @date 2020-10-13
 */
@TableName("center_order_recharge")
@Data
public class CenterOrderRecharge extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/** 订单id */
	@Excel(name = "订单id")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/** 会员id */
	@Excel(name = "会员编号")
	@TableField("member_id")
	private Long memberId;

	/** 订单编号 */
	@Excel(name = "订单编号")
	@TableField("order_sn")
	private String orderSn;

	/** 应付金额（实际支付金额） */
	@Excel(name = "应付金额")
	@TableField("pay_amount")
	private BigDecimal payAmount;

	/** 支付方式：0->未支付；1->支付宝；2->微信 */
	@Excel(name = "支付方式")
	@TableField("pay_type")
	private Integer payType;

	/** 订单来源：1->小程序；2->H5；3->PC；4->APP */
	@Excel(name = "订单来源")
	@TableField("source_type")
	private Integer sourceType;

	/** 订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单 */
	@Excel(name = "订单状态")
	@TableField("status")
	private Integer status;

	/** 创建时间 */
	@Excel(name = "创建时间")
	@TableField(value = "create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/** 支付时间 */
	@Excel(name = "支付时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("payment_time")
	private Date paymentTime;

	/**
	 * 修改时间
	 */
	@TableField("modify_time")
	private Date modifyTime;

	/** 业务id */
	@Excel(name = "业务id")
	@TableField("prepay_id")
	private String prepayId;

	/** 昵称 */
	@Excel(name = "昵称")
	@TableField(value = "nick_name")
	private String nickname;

	/** 头像 */
	@Excel(name = "头像")
	@TableField(value = "icon")
	private String icon;

	@TableField(exist = false)
	private String beginTime;

	@TableField(exist = false)
	private String endTime;

	/** 赠送金额 */
	@Excel(name = "赠送金额")
	@TableField("give_amount")
	private BigDecimal giveAmount;
}
